<html>
	<head>
		<script src = sprintf-0.6.js 		type = "text/javascript"></script>
		<script src = jquery-1.9.1.min.js	type = "text/javascript"></script>
		<script src = tester.js 			type = "text/javascript"></script>
		<script src = taskViewer.js 		type = "text/javascript"></script>
		

	</head>
	<body>
		<script>
			var form = taskViewer.createForm(1);
			document.body.appendChild(form);
			var taskText = '//calculate area of triangle\n//Inputs are height and width\n\n';
			taskText += 'height = Math.random()\n';
			taskText += 'width = Math.random()\n';
			taskText += 'correctValue = height*width/2;\ncalculatedValue = solution(height, width)\n\nreturn (correctValue == calculatedValue)';
			//taskViewer.setTextToTaskTextArea('//calculate area of triangle\n//Inputs are height and width\n\ncorrectValue = 2*3/2;\ncalculatedValue = solution(2,3)\n\nreturn (correctValue == calculatedValue)', 1);
			taskViewer.setTextToTaskTextArea(taskText, 1);
			taskViewer.setTextToSolutionTextArea('return arg1*arg2/2', 1);

		</script>

	<form>
	<input id="testbutton" type="submit" onclick="alert(tester.runTestByIndex(1));" />
	</form>
	
	
	</body>
</html>